| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | (function () { |
||
| 10 | $(".chart-wrapper").each(function () { |
||
| 11 | var chartType = $(this).data("chart-type"); |
||
| 12 | if ( chartType === undefined ) { |
||
| 13 | return false; |
||
| 14 | } |
||
| 15 | var data = $(this).data("chart-data"); |
||
| 16 | var labels = $(this).data("chart-labels"); |
||
| 17 | var $ctx = $("canvas", $(this)); |
||
| 18 | new Chart($ctx, { |
||
| 19 | type: chartType, |
||
| 20 | data: { |
||
| 21 | labels: labels, |
||
| 22 | datasets: [ { data: data } ] |
||
| 23 | } |
||
| 24 | }); |
||
| 25 | }); |
||
| 26 | |||
| 42 |